import request from '@/utils/request'

// 查询店铺图片列表
export function listImgs(query) {
  return request({
    url: '/merchant/imgs/list',
    method: 'get',
    params: query
  })
}

// 查询店铺图片详细
export function getImgs(id) {
  return request({
    url: '/merchant/imgs/' + id,
    method: 'get'
  })
}

// 新增店铺图片
export function addImgs(data) {
  return request({
    url: '/merchant/imgs',
    method: 'post',
    data: data
  })
}

// 修改店铺图片
export function updateImgs(data) {
  return request({
    url: '/merchant/imgs',
    method: 'put',
    data: data
  })
}

// 删除店铺图片
export function delImgs(id) {
  return request({
    url: '/merchant/imgs/' + id,
    method: 'delete'
  })
}
